Bipartite graph of two-dimensional coordinates